<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <title>商家入驻申请</title>
    <link rel="stylesheet" type="text/css" href="/css/webbase.css"/>
    <link rel="stylesheet" type="text/css" href="/css/pages-register.css"/>
    <script type="text/javascript" src="/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/plugins/jquery.easing/jquery.easing.min.js"></script>
    <script type="text/javascript" src="/plugins/sui/sui.min.js"></script>
    <script type="text/javascript" src="/plugins/jquery-placeholder/jquery.placeholder.min.js"></script>
    <script type="text/javascript" src="/js/pages/register.js"></script>
</head>

<body>
<div class="register py-container ">
    <!--head-->
    <!-- <div class="logoArea">
         <a href="" class="logo"></a>
     </div>-->
    <!--register-->
    <div class="registerArea">
        <h3>商家入驻申请<span class="go">我有账号，去<a href="/skip/toshoplogin" target="_parent">登陆</a></span></h3>
        <div class="info">
            <form class="sui-form form-horizontal" id="TbUser">

                <div class="control-group">
                    <label class="control-label">登陆名（不可修改）：</label>
                    <div class="controls">
                        <input type="text" placeholder="登陆名" class="input-xfat input-xlarge" id="sellerId"
                               name="sellerId">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">登陆密码：</label>
                    <div class="controls">
                        <input type="password" placeholder="登陆密码" class="input-xfat input-xlarge" id="password"
                               name="password">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">个人邮箱：</label>
                    <div class="controls">
                        <input type="text" placeholder="个人邮箱" class="input-xfat input-xlarge" name="email">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">店铺名称：</label>
                    <div class="controls">
                        <input type="text" placeholder="店铺名称" class="input-xfat input-xlarge" name="nickName">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">公司名称：</label>
                    <div class="controls">
                        <input type="text" placeholder="公司名称" class="input-xfat input-xlarge" name="name">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">公司电话：</label>
                    <div class="controls">
                        <input type="text" placeholder="公司电话" class="input-xfat input-xlarge" name="mobile">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">公司手机：</label>
                    <div class="controls">
                        <input type="text" placeholder="公司手机" class="input-xfat input-xlarge" name="telephone">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">公司详细地址：</label>
                    <div class="controls">
                        <input type="text" placeholder="公司详细地址" class="input-xfat input-xlarge" name="address">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">联系人姓名：</label>
                    <div class="controls">
                        <input type="text" placeholder="联系人姓名" class="input-xfat input-xlarge" name="linkmanName">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">联系人QQ：</label>
                    <div class="controls">
                        <input type="text" placeholder="联系人QQ" class="input-xfat input-xlarge" name="linkmanQq">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">联系人手机：</label>
                    <div class="controls">
                        <input type="text" placeholder="联系人手机" class="input-xfat input-xlarge" name="linkmanMobile">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">联系人EMAIL：</label>
                    <div class="controls">
                        <input type="text" placeholder="联系人EMAIL" class="input-xfat input-xlarge" name="linkmanEmail">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">营业执照号：</label>
                    <div class="controls">
                        <input type="text" placeholder="营业执照号" class="input-xfat input-xlarge" name="licenseNumber">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">税务登记证号：</label>
                    <div class="controls">
                        <input type="text" placeholder="税务登记证号" class="input-xfat input-xlarge" name="taxNumber">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">组织机构代码证：</label>
                    <div class="controls">
                        <input type="text" placeholder="组织机构代码证" class="input-xfat input-xlarge" name="orgNumber">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">法定代表人：</label>
                    <div class="controls">
                        <input type="text" placeholder="法定代表人" class="input-xfat input-xlarge" name="legalPerson">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">法定代表人身份证号：</label>
                    <div class="controls">
                        <input type="text" placeholder="法定代表人身份证号" class="input-xfat input-xlarge"
                               name="legalPersonCardId">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">开户行名称：</label>
                    <div class="controls">
                        <input type="text" placeholder="开户行名称" class="input-xfat input-xlarge" name="bankUser">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">开户行支行：</label>
                    <div class="controls">
                        <input type="text" placeholder="开户行支行" class="input-xfat input-xlarge" name="bankName">
                    </div>
                </div>

                <!-- <div class="control-group">
                     <label class="control-label">银行账号：</label>
                     <div class="controls">
                         <input type="text" placeholder="银行账号" class="input-xfat input-xlarge" name="">
                     </div>
                 </div>-->

                <div class="control-group">
                    <label for="inputPassword" class="control-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                    <div class="controls">
                        <input name="m1" type="checkbox" id="baba" value="2" checked=""><span>同意协议并注册  <a href="/skip/tosampling">《东东商城商家入驻协议》</a></span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls btn-reg">
                        <a class="sui-btn btn-block btn-xlarge btn-danger" href="javascript:register()"
                           target="_parent">申请入驻</a>
                    </div>
                </div>
            </form>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--注册-->
    <script type="text/javascript">
        function register() {
            if ($("#sellerId").val() == null || $("#sellerId").val() == '') {
                alert("登录用户名不能为空")
                return
            }
            if ($("#password").val() == null || $("#password").val() == '') {
                alert("登录密码不能为空")
                return;
            }
            var prop = $("#baba").prop("checked");
            if (prop == false){
                alert("请勾选同意协议")
                return;
            }
            $.ajax({
                url: "/TbSeller/addTbSeller",
                data: $("#TbUser").serialize(),
                dataType: "json",
                type: "post",
                async: false,
                success: function (pm) {
                    if (pm.code == 200) {
                        alert(pm.message)
                        location.href = "/skip/toshoplogin"
                    } else
                        alert(pm.message)
                },
                error: function () {
                    alert("系统异常")
                }
            })
        }
    </script>
    <!--foot-->
    <div class="py-container copyright">
        <ul>
            <li>关于我们</li>
            <li>联系我们</li>
            <li>联系客服</li>
            <li>商家入驻</li>
            <li>营销中心</li>
            <li>手机东东商城</li>
            <li>销售联盟</li>
            <li>东东商城社区</li>
        </ul>
        <div class="address">地址：北京市昌平区沙阳路18号 邮编：100000 电话：400-0123-302</div>
        <div class="beian">京ICP备08006666号京公网安备11010888888
        </div>
    </div>
</div>
</body>

</html>